import request from '@/utils/request'

// 创建用户信息详情
export function createUserInfoDetail(data) {
  return request({
    url: '/vote/user-info-detail/create',
    method: 'post',
    data: data
  })
}

// 更新用户信息详情
export function updateUserInfoDetail(data) {
  return request({
    url: '/vote/user-info-detail/update',
    method: 'put',
    data: data
  })
}

// 删除用户信息详情
export function deleteUserInfoDetail(id) {
  return request({
    url: '/vote/user-info-detail/delete?id=' + id,
    method: 'delete'
  })
}

// 获得用户信息详情
export function getUserInfoDetail(id) {
  return request({
    url: '/vote/user-info-detail/get?id=' + id,
    method: 'get'
  })
}

// 获得用户信息详情分页
export function getUserInfoDetailPage(query) {
  return request({
    url: '/vote/user-info-detail/page',
    method: 'get',
    params: query
  })
}

// 导出用户信息详情 Excel
export function exportUserInfoDetailExcel(query) {
  return request({
    url: '/vote/user-info-detail/export-excel',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}
